package com.example.kaogong.sys.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 教师
 * </p>
 *
 * @author    
 * @since 2022-03-26
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("t_teacher")
@ApiModel(value="Teacher对象", description="教师")
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "教师编号不能为空")
    @ApiModelProperty(value = "教师编号")
    @TableId(value = "teacher_id", type = IdType.AUTO)
    private Integer teacherId;

    @ApiModelProperty(value = "职位编号")
    private Integer postId;

    @ApiModelProperty(value = "用户编号")
    private Integer uid;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private Integer gender;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "联系方式")
    private String tel;

    @ApiModelProperty(value = "住址")
    private String address;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;


}
